import request from '@/utils/request';
//import requestUpload from '@/utils/requestUpload';

export async function getDictionaryByPage(params: any) {
  return request('/api/baseData/getDictionaryByPage', {
    method: 'POST',
    data: params,
  });
}

export async function addDictionary(params: any) {
  return request('/api/baseData/addDictionary', {
    method: 'POST',
    data: params,
  });
}

export async function delDictionary(params: any) {
  return request('/api/baseData/delDictionary', {
    method: 'POST',
    data: params,
  });
}

export async function updateDictionary(params: any) {
  return request('/api/baseData/updateDictionary', {
    method: 'POST',
    data: params,
  });
}
